package com.lcj.mis.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author : lcj
 * @create 2022/11/15 15:08
 */
@Data
@Schema(description = "查询司机基本信息的表单")
public class DriverBaseInfoForm {

    @NotNull(message = "driverId不能为空")
    @Min(value = 1, message = "driverId不能小于1")
    @Schema(description = "司机ID")
    private Long driverId;

    public DriverBaseInfoForm(Long driverId) {
        this.driverId = driverId;
    }

    public DriverBaseInfoForm() {
    }
}
